package com.farm.wuc.events;

import java.util.ArrayList;
import java.util.List;

/**
 * WUC事件定义类
 * 
 * @author macpl
 *
 */
public class WucEventDefinitions {
	private static List<WucEventModle> models = null;
	private static List<WucEventRole> roles = null;

	/**
	 * 获得事件模型
	 * 
	 * @return
	 */
	public static List<WucEventModle> getModels() {
		if (models == null) {
			models = new ArrayList<>();
			for (WucEventModle model : WucEventModle.values()) {
				models.add(model);
			}
		}
		return models;
	}

	/**
	 * 获得关系人模型
	 * 
	 * @return
	 */
	public static List<WucEventRole> getRoles() {
		if (roles == null) {
			roles = new ArrayList<>();
			for (WucEventRole role : WucEventRole.values()) {
				roles.add(role);
			}
		}
		return roles;
	}

}
